package com.bwie.home.backstage.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.home.common.utils.PageUtils;
import com.bwie.home.common.utils.Query;

import com.bwie.home.backstage.dao.HomeTypeDao;
import com.bwie.home.backstage.entity.HomeTypeEntity;
import com.bwie.home.backstage.service.HomeTypeService;


@Service("homeTypeService")
public class HomeTypeServiceImpl extends ServiceImpl<HomeTypeDao, HomeTypeEntity> implements HomeTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HomeTypeEntity> page = this.page(
                new Query<HomeTypeEntity>().getPage(params),
                new QueryWrapper<>()
        );

        return new PageUtils(page);
    }

}